#ifndef OLED_H
#define OLED_H

#include "stdint.h"

//初始化OLED屏幕
//contrast：屏幕对比度
void oled_init(uint8_t contrast);

//清屏
//pattern：填充图案
void oled_clear(unsigned char pattern);

//显示字符
//page: 起始行
//column: 起始列
//c：字符
void oled_putchar(unsigned char page, unsigned char column, char c);

void oled_puts(unsigned char page, unsigned char column, char* s);

void oled_puthz(unsigned char page, unsigned char column, unsigned char* font);

void oled_showimage(unsigned char page, unsigned char column, unsigned char* image, unsigned char height, unsigned char width);

#endif
